<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>netaddr</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >netaddr</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;netaddr
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="netaddr-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="netaddr-module.html">Package netaddr</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Copyright (c) 2008, David P. D. Moss. All rights reserved.</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Released under the BSD license. See the LICENSE file for details.</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-docstring">"""</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring">network address manipulation, done Pythonically</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module netaddr.address=netaddr.address-module.html"><a title="netaddr.address" class="py-name" href="#" onclick="return doclink('link-0', 'address', 'link-0');">address</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class netaddr.address.Addr=netaddr.address.Addr-class.html"><a title="netaddr.address.Addr" class="py-name" href="#" onclick="return doclink('link-1', 'Addr', 'link-1');">Addr</a></tt><tt class="py-op">,</tt> <tt id="link-2" class="py-name" targets="Class netaddr.address.IP=netaddr.address.IP-class.html"><a title="netaddr.address.IP" class="py-name" href="#" onclick="return doclink('link-2', 'IP', 'link-2');">IP</a></tt><tt class="py-op">,</tt> <tt id="link-3" class="py-name" targets="Class netaddr.address.EUI=netaddr.address.EUI-class.html"><a title="netaddr.address.EUI" class="py-name" href="#" onclick="return doclink('link-3', 'EUI', 'link-3');">EUI</a></tt><tt class="py-op">,</tt> <tt id="link-4" class="py-name" targets="Class netaddr.address.AddrRange=netaddr.address.AddrRange-class.html"><a title="netaddr.address.AddrRange" class="py-name" href="#" onclick="return doclink('link-4', 'AddrRange', 'link-4');">AddrRange</a></tt><tt class="py-op">,</tt> <tt id="link-5" class="py-name" targets="Class netaddr.address.CIDR=netaddr.address.CIDR-class.html"><a title="netaddr.address.CIDR" class="py-name" href="#" onclick="return doclink('link-5', 'CIDR', 'link-5');">CIDR</a></tt><tt class="py-op">,</tt> <tt id="link-6" class="py-name" targets="Class netaddr.address.Wildcard=netaddr.address.Wildcard-class.html"><a title="netaddr.address.Wildcard" class="py-name" href="#" onclick="return doclink('link-6', 'Wildcard', 'link-6');">Wildcard</a></tt><tt class="py-op">,</tt> <tt id="link-7" class="py-name" targets="Function netaddr.address.nrange()=netaddr.address-module.html#nrange"><a title="netaddr.address.nrange" class="py-name" href="#" onclick="return doclink('link-7', 'nrange', 'link-7');">nrange</a></tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-8" class="py-name" targets="Module netaddr.strategy=netaddr.strategy-module.html"><a title="netaddr.strategy" class="py-name" href="#" onclick="return doclink('link-8', 'strategy', 'link-8');">strategy</a></tt> <tt class="py-keyword">import</tt> <tt id="link-9" class="py-name" targets="Variable netaddr.strategy.BIG_ENDIAN_PLATFORM=netaddr.strategy-module.html#BIG_ENDIAN_PLATFORM"><a title="netaddr.strategy.BIG_ENDIAN_PLATFORM" class="py-name" href="#" onclick="return doclink('link-9', 'BIG_ENDIAN_PLATFORM', 'link-9');">BIG_ENDIAN_PLATFORM</a></tt><tt class="py-op">,</tt> <tt id="link-10" class="py-name" targets="Variable netaddr.strategy.AT_LINK=netaddr.strategy-module.html#AT_LINK"><a title="netaddr.strategy.AT_LINK" class="py-name" href="#" onclick="return doclink('link-10', 'AT_LINK', 'link-10');">AT_LINK</a></tt><tt class="py-op">,</tt> <tt id="link-11" class="py-name" targets="Variable netaddr.strategy.AT_EUI64=netaddr.strategy-module.html#AT_EUI64"><a title="netaddr.strategy.AT_EUI64" class="py-name" href="#" onclick="return doclink('link-11', 'AT_EUI64', 'link-11');">AT_EUI64</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Variable netaddr.strategy.AT_INET=netaddr.strategy-module.html#AT_INET"><a title="netaddr.strategy.AT_INET" class="py-name" href="#" onclick="return doclink('link-12', 'AT_INET', 'link-12');">AT_INET</a></tt><tt class="py-op">,</tt> \ </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">    <tt id="link-13" class="py-name" targets="Variable netaddr.strategy.AT_INET6=netaddr.strategy-module.html#AT_INET6"><a title="netaddr.strategy.AT_INET6" class="py-name" href="#" onclick="return doclink('link-13', 'AT_INET6', 'link-13');">AT_INET6</a></tt><tt class="py-op">,</tt> <tt id="link-14" class="py-name" targets="Variable netaddr.strategy.AT_UNSPEC=netaddr.strategy-module.html#AT_UNSPEC"><a title="netaddr.strategy.AT_UNSPEC" class="py-name" href="#" onclick="return doclink('link-14', 'AT_UNSPEC', 'link-14');">AT_UNSPEC</a></tt><tt class="py-op">,</tt> <tt id="link-15" class="py-name" targets="Variable netaddr.strategy.ST_EUI48=netaddr.strategy-module.html#ST_EUI48"><a title="netaddr.strategy.ST_EUI48" class="py-name" href="#" onclick="return doclink('link-15', 'ST_EUI48', 'link-15');">ST_EUI48</a></tt><tt class="py-op">,</tt> <tt id="link-16" class="py-name" targets="Variable netaddr.strategy.ST_EUI64=netaddr.strategy-module.html#ST_EUI64"><a title="netaddr.strategy.ST_EUI64" class="py-name" href="#" onclick="return doclink('link-16', 'ST_EUI64', 'link-16');">ST_EUI64</a></tt><tt class="py-op">,</tt> <tt id="link-17" class="py-name" targets="Variable netaddr.strategy.ST_IPV4=netaddr.strategy-module.html#ST_IPV4"><a title="netaddr.strategy.ST_IPV4" class="py-name" href="#" onclick="return doclink('link-17', 'ST_IPV4', 'link-17');">ST_IPV4</a></tt><tt class="py-op">,</tt> <tt id="link-18" class="py-name" targets="Variable netaddr.strategy.ST_IPV6=netaddr.strategy-module.html#ST_IPV6"><a title="netaddr.strategy.ST_IPV6" class="py-name" href="#" onclick="return doclink('link-18', 'ST_IPV6', 'link-18');">ST_IPV6</a></tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >netaddr</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 13 00:16:36 2008
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
